package com.lxy.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lxy.auth.dto.UserDto;
import org.apache.ibatis.annotations.Mapper;

import java.io.Serializable;

@Mapper
public interface UserMapper extends BaseMapper<UserDto> {

    /**
     * 删除用户
     * @param id
     * @return
     */
    int delete(Serializable id);

    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    int queryUserByUserName(String username);

    /**
     * 根据账号查询
     * @param username
     * @return
     */
    UserDto queryByAccount(String username);
}
